package com.dachuang.canjiren.mapper;

import com.dachuang.canjiren.entity.Activity;
import com.dachuang.canjiren.entity.Volunteer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2020-07-27
 */
@Repository
public interface VolunteerMapper extends BaseMapper<Volunteer> {
    /**
     * 查询志愿者活动
     * @param id
     * @return
     */
    Volunteer selectInfo(Integer id);

    /**
     * 创建志愿者活动
     * @param volunteer
     * @return
     */
    int insertVolunteer(Volunteer volunteer);

    /**
     * 分页
     * @param keyword
     * @return
     */
    List<Volunteer> selectList(String keyword);
}
